package top.swimmer.concurrent.thread;

/**
 * 效率高，但可能造成资源浪费
 */
public class Singleton {
    private static Singleton instance = new Singleton();

    private Singleton() {}

    public static Singleton getInstance() {
        return instance;
    }
}
